Resolution beyond Rayleigh's criterion: a modern resolution measure with applications to single molecule imaging