Proton ordering energetics in ice phases