Optical solitons in (n + 1) dimensions with Kerr and power law nonlinearities