The capacitors shown in the figure are in steady state. If at t=0 switch S is closed, then find the heat generated in the circuit.