First-Principles Study Of Two-Dimensional Electron Gas In Perovskite Oxide Heterostructures