Inferring species roles in metacommunity structure from species co-occurrence networks