Twist analysis of the nucleon spin in QCD