Predicting behavioural responses to novel organisms: state-dependent detection theory