3D Systems beats Q2 EPS estimate with narrower 4-cent loss