Ab initio thermodynamics of fcc H-Zr and formation of hydrides