The growth of compact layers at the electrode interface