find the resistnace in which maximum heat is generated