Analog CMOS square-law circuits