125 GeV Higgs boson in the NMSSM in light of the LHC results and astrophysics constraints