Peer-to-peer energy trading – Rechtlicher Rahmen