Tunable superconducting coupling of quantum dots via Andreev bound states in semiconductor-superconductor nanowires