William Melville Codrington — British soldier, diplomat, and railway officer