China buys Russian oil and gas at steep discounts while supplying Moscow with machinery and electronics as Western sanctions tighten.