Nuclear rainbows and heavy-ion scattering