Next-to-leading order QCD analysis of the spin structure function g1