Study of the solar wind deceleration upstream of the Martian terminator bow shock