QUANTIFYING PHYLOGENETICALLY STRUCTURED ENVIRONMENTAL VARIATION