SMS dit: Modelling bonds and credit default swaps using a structural model with contagion