Add getGetFeatureInfoUrl methods to the 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.