Single Higgs-boson production through γγ scattering within the general 2HDM