Foundations of elastic postbuckling theory