Folding model potentials from realistic interactions for heavy-ion scattering