Modeling Node Exposure for Community Detection in Networks