This is my PhD thesis.