Add new imt function.

https://code.usgs.gov/ghsc/nshmp/nshmp-utils-ts/-/merge_requests/279