SECOND AMENDED AND RESTATED CREDIT AGREEMENT