A theoretical approach toward sustainable ammonia synthesis