Development of a thin-film oxygen sensor for combustion control of gas appliances