Combined spectroscopic and theoretical analysis of the binding of a water-soluble perylene diimide to DNA/RNA polynucleotides and G-quadruplexes