Variability and tidal exchange of ecological properties in a coastal lagoon