Monte Carlo studies of the freezing and condensation transitions of confined fluids