Surface doping of semiconductors by pulsed-laser irradiation in reactive atmosphere