Production of massive particles during reheating