General theory of shells