Edgeworth on the foundations of ethics and probability