Electromagnetic and thermal history during microwave heating