PN junction isolated integrated circuit with isolation walls having minimum dopant concentration at intermediate depth in epitaxial layer