Contractionary devaluation, substitution in production and consumption, and the role of the labor market