This is Alessandro Imparato's MSc thesis.