Species diversity in a metacommunity with patches connected by periodic coalescence: a neutral model