The Brisbane Roar won their third A-League championship in four seasons after a thrilling extra-time victory over Western Sydney Wanderers in the grand final.