Electronic properties and gas interaction of LaF3 and ZrO2