Dipole states in deformed nuclei