Application of sacrificial polymers in electronic and transient devices