A Non-Parametric Propagation Condition Identification Method and Non-Line of Sight Mitigation Algorithm for Wireless Sensor Network