Nanofiber-based optical trapping of cold neutral atoms