Introduction to Spin and Lattice Models in the Social Sciences