Pulse-train generation through modulational instability in intracavity second-harmonic generation.