An Australian man has been charged with trying to pass information about Ukrainian military activities to Russia.