Sex allocation, pollinator attraction and fruit dispersal in cosexual plants*