Near-field focusing using phased arrays with dynamic polarization control