Calibrating structural models: a new methodology based on stock and credit default swap data