Microscopic understanding of the orbital splitting and its tuning at oxide interfaces