Visible to the public On localization for magnetic induction-based wireless sensor networks in pipeline environments