THIRD AMENDMENT TO AMENDED AND RESTATED CREDIT AGREEMENT