A magnetic flux through a stationary loop with a resistance \(R\) varies during the time interval \(\tau\) as \(\Phi=a t(\tau-t)\). Find the amount of heat generated in the loop during that time. The inductance of the loop is to be neglected.