FEM solution to natural convection flow of a micropolar nanofluid in the presence of a magnetic field