Judge sentences Daniel Perry to 25 years in prison