who did the 49ers beat in the super bowls