The micromorphic approach to gradient plasticity and damage