Quark compound bag model for NN scattering up to 1 GeV