Gauge freedom for degenerate Bloch states