Transmission spectrum of Earth as a transiting exoplanet