On-chip plasmonic spin-Hall nanograting for simultaneously detecting phase and polarization singularities