Reconfigurable arrays by phase-only control