Rogue wavesin a two-component Manakov system with variable coefficients and an external potential