Metal-insulator transition in composition-tuned nickel oxide films