A Barrier Coverage Mechanism in Wireless Mobile Sensor Networks