Finite element methods for micropolar models of granular materials