Actively mode-locked lasers integrated with electroabsorption modulators and chirped gratings