Transport of kJ-laser-driven relativistic electron beams in cold and shock-heated vitreous carbon and diamond