Periodic waves in a two-component Bose-Einstein condensate