Ptolemy and the Foundations of Ancient Mathematical Optics: A Source Based Guided Study