Periodic solutions of semilinear partial differential equations of parabolic type