Switchbacks as signatures of magnetic flux ropes generated by interchange reconnection in the corona