STM/STS measurements of two-dimensional electronic states trapped around surface defects in magnetic fields