Molecular Dynamics Simulations and their Application to Thin-film Devices