Ester group. I. Ab initio calculations on methyl formate