Costs to females and benefits to males from forced copulations in fruit flies