Towards real-time image deconvolution: application to confocal and STED microscopy