Generalized type III internal stress from interfaces, triple junctions and other microstructural components in nanocrystalline materials