QuantLab: a Modular Framework for Training and Deploying Mixed-Precision NNs