Sex allocation in hermaphrodites with partial overlap in male/female resource inputs