Effects of local fields on spontaneous emission in dielectric media