The dynamics of microtidal lagoons and adjacent coasts