Unrestricted shapes of light nuclei in the local-density approximation: Comparison with jellium clusters