Flux-driven and geometry-controlled spin filtering for arbitrary spins in aperiodic quantum networks