Optical spectroscopy of GX 339-4 – I. Orbital modulation