Ab initio thermodynamics of zirconium hydrides and deuterides