Multiscale modeling of defect-related phenomena in high-k based logic and memory devices