BALI: Learning Neural Networks via Bayesian Layerwise Inference