What is the minimum value that can be achieved by the expression
x2+y2+z2+2xy+2yz+2zx−3x−3y−3z−4
over all triples of real numbers
$x,y,z?$
Express your answer as a decimal.
The minimum value is 12.5.