Determination of stress profiles in optical-fibre preforms