China has lodged a complaint with Italy and the EU over top Taiwanese officials visiting a democracy conference.