why is thermal energy produced not generally usable to do work