A methodology to study lateral parasitic transistors in CMOS technologies