how mechanical energy transform to heat energy?​