Biologically-Active Heterocyclic Molecules with Aggregation-Induced Blue-Shifted Emission and Efficient Luminescence both in Solution and Solid States