Quadrupole and hexadecapole deformations in rare earth nuclei