James II of England, when Duke of York