Bose-Einstein condensation for general dispersion relations