Formation and aggregation of polymorphs in continuous precipitation. 1. Mathematical modeling