Superconducting islands and gate-based readout in semiconductor nanowires