Production of charged Higgs-boson pairs in gluon-gluon collisions