Hastings, Edward, active 1685-1718, Colonel; Governor of Upnor Castle