Tertiary templates for proteins: Use of packing criteria in the enumeration of allowed sequences for different structural classes