Automated layup of composite material by robot: planning the tape deposition strategy