Air–metal hydride secondary battery with long cycle life