Bioconvection due to gyrotactic microbes in a nanofluid flow through a porous medium