Cavity quality factor, effective mode volume, and Purcell factor