Local inverse spectral problems for rational matrix functions