Jennifer Lopez announces she's leaving 'Idol'