EC president writes to Polish PM over rule-of-law mechanism