Effect of mating history on gender preference in the hermaphroditic snail Physa acuta