Interest rate and credit risk models applied to finance and actuarial science