State-of-the-Art Analysis and Perspectives for Peer-to-Peer Energy Trading