Physical oceanography in coral reef environments : wave and mean flow dynamics at small and large scales, and resulting ecological implications