Modal characteristics in a single-nanowire cavity with a triangular cross section.