From permanent magnets to rechargeable hydride electrodes