Analysis of the relationship between side-chain conformation and secondary structure in globular proteins