Solitary Wave Solutions for Ultrashort Optical Pulses