Tropical storm Hermine strengthens off Mexico