Modeling the Coverage Problem in Wireless Sensor Networks as Floorplanning and Placement Problems