Explaining residents’ attitudes to tourism