Getting the safety integrity level right for automated systems