First-principles investigations of the structural, optoelectronic, magnetic and thermodynamic properties of hydride perovskites XCuH3 (X = Co, Ni, Zn) for hydrogen storage applications