Text this: Automatic Focusing of Off-Axis Digital Holographic Microscopy by Combining the Discrete Cosine Transform Sparse Dictionary with the Edge Preservation Index