First Principles Calculations on Oxide-Based Heterogeneous Catalysts and Photocatalysts: Problems and Advances