Non-destructive testing of optical-fibre preforms