On Cayley conditions for billiards inside ellipsoids