Agent-based model for rural–urban migration: a dynamic consideration