Modelling and characterization of small photosensors in advanced CMOS technologies