A population balance model describing the dynamics of molecular weight distributions and the structure of PHA copolymer chains