Distributed algorithms for barrier coverage using relocatable sensors