Context-aware local optimization of sensor network deployment