Directional emission from leaky and guided modes in GaAs nanowires measured by cathodoluminescence