SECOND AMENDMENT TO AMENDED AND RESTATED CREDIT AGREEMENT