Analyticity and global existence of small solutions to some nonlinear Schrödinger equations