Energies of the phases of ice at zero temperature and pressure