James Cranstoun, 8th Lord Cranstoun — Royal Navy officer