Add getGetFeatureInfoUrl methods to ImageWMS and TileWMS sources

This PR adds `getGetFeatureInfoUrl` methods to the `ol.source.ImageWMS` and `ol.source.ImageWMS` sources. It supersedes #1536 which targeted the vector-api branch.