An Intrusion Detection System for railway security based on optical fiber technology