Automated Optical Analysis Of Atomically Thin Semiconductors: Understanding Photoluminescence In Transition Metal Dichalcogenides