Phase equilibria and solvation forces for fluids confined between parallel walls