Relating behavior selection architectures to environmental complexity