Danville man sentenced to 10 years for home invasion