Measuring Agent Intelligence via Hierarchies of Environments