Elementary theory of nuclear shell structure