Electrostatic Self-Assembly Of Linear And Nonlinear Optical Thin Films