Manchester City came from behind to reach the FA Cup semi-finals for a record seventh consecutive season with a 2-1 win over Bournemouth.