Scalar and vectorial vortex filtering based on geometric phase modulation with a Q-plate