Affine diffusion processes: theory and applications