Physics-aware deep learning framework for linear elasticity