Fermi-level dependence of the charge state of diffusing hydrogen in amorphous silicon