Ab initio study of ceria films for resistive switching memory applications. (3rd October 2017)