Deformation energies of W, Os, Pt and Hg isotopes for β2-, β4- and γ-distortions