Discriminating compact nonnative structures from the native structure of globular proteins.