Anomalous muon magnetic moment in the inverse seesaw extended next-to-minimal supersymmetric standard model