Orientation of luminescent excitons in layered nanomaterials