Return loss measurement with spectrum analyzer