Automated identification of the operational modes of switched electric circuits