Construction of doubly periodic solutions via the Poincare–Lindstedt method in the case of massless ϕ4 theory