Cross-layer application-specific wireless sensor network design with single-channel CSMA MAC over sense-sleep trees