Text this: Synthesis of novel polymers for light emitting and metal ion sensing applications