On the semisimplicity of skew polynomial rings