Developmental analysis of reversal and half-reversal shifts.