Engineering crystal phase of polytypic CuInS2 nanosheets for enhanced photocatalytic and photoelectrochemical performance