Non-destructive detection of current in power modules by means of magnetic measurements