Wright upsets Medina for surfing bronze