MHD convection and entropy generation of nanofluid in a porous enclosure with sinusoidal heating