Layered-Structure Intermetallics as Magnetocaloric Materials and Water Splitting Electrocatalysts