An iterated three-layer model of the double layer with permanent dipoles