A Deep Learning Approach for Histology-Based Nuclei Segmentation and Tumor Microenvironment Characterization