Signal analysis by stochastic complexity