Bright and dark optical solitons of the (2+1)-dimensional perturbed nonlinear Schrödinger equation in nonlinear optical fibers