A simple optical ray tracing simulation based on Snell's law and Fresnel equations for MATLAB and OCTAVE