Forensic analysis of electronic devices