Next-to-next-to-leading order mixed QCD-electroweak corrections to on-shell Z production