Statistical mechanics of a polymer chain attached to the interface of a cone-shaped channel