Detained for almost two years, Australian writer formally charged with espionage in China