chemical mass balance