Eigenvalues of the reference operator and semiclassical resonances