Controlling The Phase Of Light By Nanostructuring Of Materials