Patterns of coral bleaching: modeling the adaptive bleaching hypothesis