Self-assembled D-p-A multifunctional systems with tunable stimuli-responsive emission and optical waveguiding behaviour