The coordination of hydrogen in transition metal hydrides