Robust stability analysis and control synthesis for discrete-time uncertain switched systems