Mode characterization of rectangular core fiber