A former MI6 worker who says he was "directed by voices" faces a jail sentence after admitting charges of unlawfully disclosing top secret material.