Piston cooling for opposed-piston engines