Finite element modeling of micromorphic continua in the context of three-dimensional elasticity