X-ray diffraction and scanning electron microscopic characterization of electrolytically hydrogenated nickel and palladium