Text this: Function design for fault analysis in transmission lines to be executed in a digital fault recorder