Second-order QCD corrections to scalar and pseudoscalar Higgs decays into massive bottom quarks