Male mealworm beetles increase resting metabolic rate under terminal investment