An introduction to phase-stable optical sources