Bubble nucleation at zero and nonzero temperatures