Displacement fields and self-energies of circular and polygonal dislocation loops in homogeneous and layered anisotropic solids. (October 2015)