Equivalence of the spherical and deformed shell-model approach to intruder states