Borussia Dortmund are on the cusp of an unlikely Champions League final berth after defeating Atletico Madrid in a thrilling quarter-final.