A method for space-variant deblurring with application to adaptive optics imaging in astronomy