Algorithm Optimization for Rockfalls Alarm System Based on Fiber Polarization Sensing