Determination of migration mechanisms and their influence on the structure of films