Representations of integers as sums of an even number of squares