Control of pull-in dynamics in a nonlinear thermoelastic electrically actuated microbeam