Urbana man sentenced to 8 years in prison for attempted armed robbery