Electrolysis of liquid ammonia for hydrogen generation