added (untested) function for p1db and small signal gain measurements using spectrum analyzer and signal generator