CMOS bandgap references and temperature sensors and their applications