How would you investigate a failure that could be caused by either embedded software or electrical hardware?