A new homotopy perturbation method for solving linear and nonlinear Schrِdinger equations