Particle production by 8 GeV/c protons incident on Al, Cu, Pb and W