Stability of As and B doped Si with respect to overlaying CoSi_2 and TiSi_2 thin films