Charge equilibration method for crystal structures