The regulatory roles of metal ions (M+/2+= Li+, Na+, K+, Be2+, Mg2+, and Ca2+) and water molecules in stabilizing the zwitterionic form of glycine derivatives