Multiscale and multicomponent layer by layer assembly of optical thin films triggered by electrochemical coupling reactions of N-alkylcarbazoles