Thick photorefractive polymer device with coplanar electrodes