Reversal and reconstruction of the profile of ultrashort light pulses