Understanding semiconductor devices