A serving member of the Royal Navy has been charged with preparing to disclose sensitive information to a foreign power, London police say.