Former S Korean president gets 30-year sentence