Influence of tail-like magnetic field on O+ ion distribution in the Martian magnetosphere