Electronically Active Defects Near Surfaces And Interfaces Of Conducting 2D Systems