Self-assembly of nonlinear optical chromophoric layers through the ionic interaction