Programmable Degradation of Transient Soluble Silk Based Optical Devices via Thermal Nanoimprinting