The side-chain classification of loops from high resolution protein crystal structures