Type-II two-Higgs-doublet model in noncommutative geometry