Controlling spin off state by gas molecules adsorption on metal-phthalocyanine molecular junctions and its possibility of gas sensor