Consensus based distributed particle filter in sensor networks