AMENDED AND RESTATED RECEIVABLES PURCHASE AND SALE AGREEMENT