Valence excited states of CH. I. Potential curves