An improved statistical approach for reconstructing past climates from biotic assemblages