Plastic sorting with an integrated NIR spectral sensor