Biodiversity–invasibility mechanisms are mediated by niche dimensionality