A high biodiversity mitigates the impact of ocean acidification on hard-bottom ecosystems