Diode for Bose-Einstein condensates