Photosynthetic activity buffers ocean acidification