A semiclassical study of optical potentials: Potential resonances