Synchrotron and Smith-Purcell radiations from a charge rotating around a cylindrical grating