Ian strengthens into a hurricane and heads toward Cuba and Florida