Towards trustworthy AI in materials mechanics through domain-guided attention