Formulation and validation of bivariate population balance models and their implementation in computational fluid dynamics codes