Peru's ex-president sentenced to over 20 years in prison