Optimising barrier placement for intrusion detection and prevention in WSNs | Synapse