Resonant sequential two-photon ionization of atoms by twisted and plane-wave light