A functional safety assessment methodology for explosion protection with application to a variable frequency drive system