Gain of regularity for semilinear Schrödinger equations