Katy Perry split her pants during an impromptu performance of her hit song "Teenage Dream" during Monday's episode of American Idol