Text this: Characteristics of Smith-Purcell Radiation and Grating Transition Radiation from Gratings with Variable Profile