Time and Phase Alignment of Distributed Gateways: Theoretical Analysis and Experimental Demonstration