King, Edward Durnford, Sir, active 1803-1855, Admiral