Numerical analysis of stress singularities in composite materials