Equations of nonlinear Schroedinger type in 1+1 and 2+1 dimensions, obtained from integrable PDEs