Control of the key phenomena in continuous and batch crystallization processes