Manchester City lost at home for the first time in 459 days but secured passage to the quarter-finals with a 5-2 aggregate win