Lawyer shocked with stun gun at courthouse cites racial bias, says he will appeal conviction