Nucleon spin structure from lattice QCD