Characterizing tradeoffs between teaching via language and demonstrations in multi-agent systems