Relationships between reef fish communities, water and habitat quality on coral reefs