Imperial rivalries, insurgents and spies: Britain and Spain during Latin American Independence