FindPNG: Add versioned library names for 1.6 (#14289)

While at it, refactor the versioned library name list generation to
reduce duplication.
Merge topic 'FindPNG-1.6' into next

96fa4a2 FindPNG: Add versioned library names for 1.6 (#14289)