Effect of Rotations and Shape Resonances on Photoassociation and Photoacceleration by Ultrashort Infrared Laser Pulses