Determination of the Time Profile of Picosecond-Long Electron Bunches through the use of Coherent Smith-Purcell Radiation