Static and lattice vibrational energy differences between polymorphsâ€