Ex-NDA minister Dilip Ray gets 3-year jail in coal case