Influence of many-body effects and intra-atomic exchange interactions on the shape of x-ray emission and photoemission lines of 3 d metals