The solar wind interaction with Mars: Mariner 4, Mars 2, Mars 3, Mars 5, and Phobos 2 observations of bow shock position and shape