Layer-controlled synthesis of wafer-scale MoSe2 nanosheets for photodetector arrays