Analyticity of Solutions to Nonlinear Schr¨odinger Equations