Programmable photoresponsive materials based on a single molecule via distinct topochemical reactions