Doctoral Dissertation. This is the version without appendixes because the file was huge. If you want to check out the full version, email me at laura (dot) garcia (at) polimi (dot) it