Three-dimensional nonlinear Schrödinger equation in electron-positron-ion magnetoplasmas