A new route to metal hydrides