An introduction to effective low-energy Hamiltonians in condensed matter physics and chemistry