Monte Carlo photoionization simulations of diffuse ionized gas