Decay of the self-trapped exciton near the (001) surface in NaBr and KBr