Spin structures on manifolds