Optical Methods for Tumor Treatment and Early Diagnosis: Mechanisms and Techniques