Optical, nonlinear optical and semiconducting molecular materials based on remote functionalized chromophores and polyelectrolyte templated molecules and polymers