A joint maximum-entropy model for binary neural population patterns and continuous signals