Text this: Design of single-shot longitudinal bunch profile monitor based on analysis of coherent smith-purcell radiation