A generalized theory and new calibration procedures for network analyzer self-calibration