Labour wins two emphatic by-elections, overturning large Tory majorities