Techniques for First Passage Time Problems in Credit Risk and Other Applications in