Structure and conformational transitions in grafted polymer chain layers. A new theory