Australian researchers have discovered a new way to determine when a fish has changed sex, by looking at its ears.