Stability analysis for the virtual element method