Resonance formation of Kirkwood gaps and asteroid clusters