A consistent study of the the low energy baryon spectrum and the nucleon-nucleon interaction within the chiral quark model