A finite element framework for distortion gradient plasticity with applications to bending of thin foils