Trade-offs between transgenerational transfer of nutritional stress tolerance and immune priming