Flammable gas sensors based on sol-gel materials