Asynchronous Distributed Beamforming Optimization Framework for RIS-Assisted Wireless Communications