Predator-induced defence in a dinoflagellate generates benefits without direct costs