Determination of oxygen in coal and coke using a radio-frequency heating method