Effects of food stress and density in different life stages on reproduction in a butterfly