Rural income dynamics and poverty reduction in Thai villages from 1987 to 2004