Technique combines silicon, magnesium and silk for medical implants, transistors and digital cameras that can melt away