Spectroscopic and quantum chemical modeling on the formation and reaction mechanism of organic molecules in the interstellar space and planetary atmosphere