SharpSeq: Empowering Continual Event Detection through Sharpness-Aware Sequential-task Learning