Theoretical study on the chemisorption and the surface reaction of HCOOH on a MgO(001) surface