Chiral perturbation theory for lattice QCD at (a2)