Spectrally encoded single-pixel machine vision using diffractive networks