Former American Idol contestant dead of an apparent heart attack at 31