An approximation algorithm for the wireless gathering problem