Semiparametric estimation of the Hong-Ou-Mandel profile