London’s Merton and Richmond authorities to merge legal functions