Atomic scale simulation of oxide and metal film growth