Trial begins for prisoner accused of hate crime in stabbing