Single-shot detection of short electron bunch shapes at MHz repetition rates using diversity electro-optic scheme with advanced reconstruction algorithms at EuXFEL and FLASH | Synapse