The role of causality in explainable artificial intelligence