Unified model for light- and heavy-flavor baryon resonances