Protection of electronic circuits