Mobile agent systems and trust, a combined view toward secure sea-of-data applications : submitted to Universitat Autònoma de Barcelona in partial fulfillment of the requirements for the degree of Doctor of Philosophy in Computer Science