Modelling the fear effect in a two-species predator–prey system under the influence of toxic substances