Investigation of the Light Yield Distribution in LYSO Crystals by the Optical Spectroscopy Method for the Electromagnetic Calorimeters of the COMET Experiment