A generalization of the Müller-Villaggio model for crystal plasticity