Prosecution rests in John Edwards trial