Does the cost of a function affect its degree of plasticity? A test on plastic sex allocation in three closely related species of hermaphrodites