Liquid crystal distortions revealed by an octupolar tensor