Added convinience function emd, and added automatic conversion of the
output to time series object.