Model of the attachment/detachment cycle of electrostatic micro actuators