Learning and planning for optimal synergistic human-robot coordination in manufacturing contexts