Influence of resonances on Bose-Einstein correlations of identical pions