Transition of an oriented nematic liquid crystal to a glass with a nematic order - determination of the order parameter