Spontaneous emission in micro- and nano-structures