Regulating the Charge and Spin Ordering of Two-Dimensional Ultrathin Solids for Electrocatalytic Water Splitting