Real-time alignment and co-phasing of multi-aperture systems using phase diversity