Physics-constrained Machine Learning for Scale-bridging in Crystalline Materials