Vacuum confinement and spontaneous emission in a microcavity terminated by dielectric multilayers