Doctors in Northern Ireland will strike on 25 and 29 June following YES votes in their ballots for industrial action.