SECOND AMENDED AND RESTATED RECEIVABLES PURCHASE AGREEMENT