Continuum description of solvent dielectrics in molecular-dynamics simulations of proteins