Removal of the nπ ambiguity in observations of total electron content