Methodology for the Modeling and Simulation of Microsystems