Study of structural and electronic properties of thin metallic and organic films : doctoral thesis