openQ*D code: a versatile tool for QCD+QED simulations