Charged hadrons in local finite-volume QED+QCD with C⋆ boundary conditions