material balance equation in mineral processing