Modeling competition, niche, and coexistence between an invasive and a native species in a two-species metapopulation