Manchester City kept their hopes of securing a Champions League top-four finish alive with a convincing comeback victory over Inter Milan.