Ab initio studies of the intramolecular amide hydrolysis in N-methylmaleamic acids