Applications of Chiral Perturbation Theory to Lattice QCD