New insights into the crystallization of polymorphic materials: from real-time serial crystallography to luminescence analysis