Bounds for the maximal function associated to periodic solutions of one‐dimensional dispersive equations