Electrolytic decomposition of ammonia to nitrogen in a multi-cell-stacked electrolyzer with a self-pH-adjustment function