Online development of cognitive behaviors by a robot : a case study using auditory and visual sensing