A maximum entropy principle approach to a joint probability model for sequences with known neighbor and next neighbor pair probabilities