Bäcklund transformations via gauge transformations