Mechanism of ester aminolyses in aprotic solvents