California man sentenced to life for hate crime murder of gay student