Towards Sustainable Energy Communities: Local Optimization of Battery Usage in P2P Energy Trading | IEEE Conference Publication | IEEE Xplore