Ultranarrow homogeneous broadening of confined excitons in quantum dots: Effect of the surrounding matrix