HiTEC: a connectionist model of the interaction between perception and action planning