Ibanez's HR off Hernandez helps Yanks win 6-2