Frequency domain interferometry for measuring ultrafast refractive index modulation and surface deformation