Avalanche photodiodes in submicron CMOS technologies for high-sensitivity imaging