Heat capacity and thermal stability of Y2BaCuO5