Fully Lagrangian modeling of MEMS with thin plates