AMENDMENT NO. 6 TO SECOND AMENDED AND RESTATED CREDIT AGREEMENT AND AMENDMENT TO OTHER LOAN DOCUMENTS