Inter Milan will contest a second Champions League final in three seasons after overcoming Barcelona in a remarkable semi-final.