Determinants as sums of two squares