Labour's Ruth Elliott and the Greens' Lorenzo Martinico were the victors in the two by-elections