Dust in emission nebulae of the LMC derived from photometric reddening of stars