Defects localization and nature in bulk and thin film ultrananocrystalline diamond