Almost global existence for cubic nonlinear Schrödinger equations in one space dimension