Morphology-dependent resonances in radially inhomogeneous spheres