Engineering, analysis, and applications of dynamically reconfigurable complex three dimensional photonic lattices