Text this: Gain and phase errors calibration for joint time reversal and PCA dimensionality reduction over multipath environment