updated function to be able to interpolate for a specific (range) in frequency and/or time dimension