Interpreting the galactic center gamma-ray excess in the NMSSM