Modulational instabilities in astrophysics