Switching-on luminescence in anilate-based molecular materials