Pricing Swaptions And Credit Default Swaptions In The Quadratic Gaussian Factor Model