Calculate the compound annual growth rate (CAGR) given a start value, end value, and number of periods.