Contact binary stars. I. an X-ray survey.