Electronic energy spectrum and the concept of capacitance in quantum dots