Gradient plasticity - A thermodynamic formulation