AMENDED AND RESTATED PLEDGE AND SECURITY AGREEMENT (Allis-Chalmers Energy Inc.)