Hamilton, William Alexander Baillie-, active 1848-1904, Captain; Secretary to the Admiralty