Soot modeling for advanced control of diesel engine aftertreatment