The resolvent of the Laplacian on locally symmetric spaces