Correcting the Proximity Effect in Nanophotonic Phased Arrays