A mixed level simulator for the large signal optimization of LDMOS devices