A compact hydrogen recycling system using metal hydrides