Dirac optical potentials constrained by a Dirac-Hartree approach to nuclear structure.