Higgs production via gluon fusion in the POWHEG approach in the SM and in the MSSM