This work has been carried out under the doctorate programme of the Universitat Autònoma de Barcelona of the doctoral student Albert Boada Valmaseda