Interactions between ecological factors in the developmental environment modulate pupal and adult traits in a polyphagous fly