Adaptive magnification network for precise tumor analysis in histopathological images