Data-driven architecture to encode information in the kinematics of robots and artificial avatars