Rapid thermal nanoimprinting on silk protein substrates for controlled degradation of transient devices