A Deterministic Algorithm for the Deployment of Wireless Sensor Networks