Region Based Adaptive Contrast Enhancement of Medical X-Ray Images