A cross-layer watermarking-based mechanism for data aggregation integrity in heterogeneous WSNs