Bayern shoot-out sinks Madrid