US nonfarm productivity rises 2.3% in Q2, beating estimates