Evolutionary dynamics of social tolerance in the economic interaction model with local social cost functions