A maximum entropy approach to the measurement of market risk