Waves and flows on coral reefs : dynamical regimes and the role of roughness