Sex-specific transgenerational effects of diet on offspring life history and physiology