Determination of safety categories of electrical devices used in potentially