Cyclotomic matrices over real quadratic integer rings