A sequential algorithm to detect diffusion switching along intracellular particle trajectories