Effective action and thermodynamics of radiating shells in general relativity