A study of stress distribution in model composites by using finite-element analysis. I. End effects