Undular bore development over coral reefs