Gluon-fusion Higgs production in the Standard Model Effective Field Theory