Nanofluid flow and heat transfer in a Brinkman porous channel with variable porosity