An Energy-efficient Hybrid MAC Algorithm in Wireless Sensor Networks