Dalitz plot analysis of the decay B0(B¯0)→K±π∓π0