Endpoints of the spectrum of periodic operators are generically simple