Spontaneous Emission in Nanophotonics