Modal characterization of nanophotonic waveguides for atom trapping