The basics of solid-state devices