Exposure to rivals and plastic responses to sperm competition in Drosophila melanogaster