Niche partitioning of closely related symbiotic dinoflagellates