On modulation instability analysis and rogue waves in the presence of external potential: The (n + 1)-dimensional nonlinear Schrödinger equation