Design of gas sensor based on chemically synthesized metal oxide and metal selenide nanocomposite thin films