Text this: A Method for Modeling Time Delay-Related Measurement Errors, Applicable in Power and Energy Monitoring and in Fault Detection Algorithms for Energy Grids