Electronic device modeling