Royal Navy sailor Teddy Young has appeared in court charged with allegedly preparing to disclose protected UK defence and intelligence information to a foreign power.