Nanophotonic optical phased arrays: opportunities and limitations