Adaptive response to a future life challenge: consequences of early-life environmental complexity in dual-purpose chicks.