This document is my Ph.D. Thesis.