Relativistic nuclear energy density functional constrained by low-energy QCD