Defect spectroscopy and engineering for nanoscale electron device applications: A novel simulation-based methodology