Design and Simulation of a Microwave Kinetic Inductance Detector Spectrograph for Astronomy