Methylenepyran based dipolar and quadrupolar dyes: synthesis, electrochemical and photochemical properties