An R package for metacommunity simulations and functions to calculate biodiversity metrics