Study of vectorial properties of optical-fiber modes using a fiber resonator