Control strategy on the double-diffusive convection in a nanofluid layer with internal heat generation