Nonlinear electrodynamics generalization of the rotating BTZ black hole