Local moment formation and Kondo screening in impurity trimers.