On centralizers of semiprime rings