A study of the inner-shell alignment of atoms in the distorted-wave approximation