Electrophoresis In Heterogeneous Hydrogels And Applications In Surface Patterning