Computer-based system with software-based protection algorithms for the detection of electrical faults