Measuring competitive fitness in dynamic environments.