Regeneration of hydrogen storage alloy in spent nickel–metal hydride batteries