Analysis of Protection Relay Malfunctioning in Medium Voltage Grids