General mass balance for oxygen steelmaking