Detroit unions to end talks if state plan accepted