Mean-field description of heavy-ion scattering at low energies and fusion