Hadron masses from the valence approximation to lattice QCD