Next-to-leading order determination of the singlet axial charge and the polarized gluon content of the nucleon