The transit spectra of the Solar System planets