Confinement factors and optical gain in subwavelength plasmonic resonators