Tunneling Model of Phase Changes in Tetragonal Rare-Earth Crystals