Influence of periodic external fields in multiagent models with language dynamics