Production and polarization of S -wave quarkonia in potential nonrelativistic QCD