A resonance model of baryons based on duality and the quark model