Quenched Invariance Principles for Random Walks and Elliptic Diffusions in Random Media with Boundary