Determining the geometric parameters of microbubble resonators from their spectra