Understanding metric-related pitfalls in image analysis validation