Bragg reflection model for x-ray absorption near edge structure in crystalline solids