In situ characterisation of batch and continuous crystallisations