Photochemical and thermal evolution of interstellar/precometary ice analogs