Understanding Fundamental Processes In Tio₂: Electronic And Interface Properties From First Principles