Stability of the Blaschke-Santaló and the affine isoperimetric inequality