Synthesis of Magnesium Phosphorous Trichalcogenides and Applications in Photoelectrochemical Water Splitting.