Factors influencing the capacity of communities to respond to coastal erosion in the upper Gulf of Thailand