Conformational transitions in a model polymer chain with secondary and tertiary structures