Reduction of selenic acid by hydrochloric acid