Barrierless ionic pathways in the synthesis of methyl esters of small carboxylic acids