Australian surfer Wright caps incredible comeback with Olympic medal