Shared Community Energy Storage Allocation and Optimization