Structure of two-loop evolution kernels and evolution of the pion wave function in ϕ(6)3 and QCD