Layering, freezing transitions, capillary condensation and diffusion of methane in slit carbon pores