Analytical Model for Photonic Compressive Sensing With Pulse Stretch and Compression