Time averaged temperature distribution in a cylindrical resistor with alternating current