Meson spectroscopy with S- and P-wave-dominant initial-state selection in anti-pp annihilation