Neymar and Roberto Firmino got the goals as Brazil advanced to the quarter-finals at the expense of a spirited Mexico side