Curves of growth and line profiles in expanding and rotating atmospheres