A comprehensive model to study nonlinear behavior of multilayered micro beam switches