Mode identification from line-profile variations