Microdetermination of chlorine or bromine in highly halogenated organic compounds