Nucleation of dislocation loops in strained epitaxial layers