FindImageMagick: Use pkgconfig hints if available (#14012)

Tested-by: bastien ROUCARIES <roucaries.bastien@gmail.com>
Merge topic 'FindImageMagick-pkgconfig' into next

90245fe8 FindImageMagick: Use pkgconfig hints if available (#14012)