A User Authentication-Based Probabilistic Risk Approach for Wireless Sensor Networks