Charge state control of hydrogenation in silicon