Misfit dislocations and stresses in GaN epilayers