Optical potentials for elastic heavy ion scattering