Shaped femtosecond pulses for remote chemical detection