Direct laser patterning of a gas sensor on flexible substrate