Content-based autofocusing in automated microscopy