Flash phase engineering of MoS2 nanofilms for enhanced photoelectrochemical performance