Rules for a lender of last resort: An historical perspective