Spin structures on 3-manifolds via arbitrary triangulations