China eyes Iran, Ukraine wars amid push to rival US military