Text this: Wireless physical-layer security model based on perturbation theory and sensitivity analysis