Munster advance to the quarter-finals of the Investec Champions Cup with a brilliantly dogged 25-24 win away to La Rochelle.