Bayern Munich set up a Champions League semi-final date with Paris St-Germain after they came out on top of a seven-goal thriller against Real Madrid.