Email Record: Temporal diagnostics of femtosecond electron bunches with complex structures using sparsity-based algorithm