Physical principles of semiconductor devices