Moduli spaces and locally symmetric varieties