General quark-model analysis of baryon magnetic moments