Interplay between behavioural thermoregulation and immune response in mealworms