Role of electrostatics explored with molecular dynamics simulations for protein stability and folding