Exciton trapping in interface defects/quantum dots in narrow quantum wells: magnetic-field effects