Multiphoton path-polarization entanglement through a single gradient metasurface