Photoinduced processes in interlocked structures containing porphyrins