Repurposing protein degradation for optogenetic modulation of protein activities