Piezoresistive cantilevers as optical sensors for scanning near-field microscopy