Quantum efficiency and radiation resistance of bulk and porous CsI photocathodes in vacuum and methane