Electric-dipole transitions in deformed rare-earth nuclei