Boundary behavior for solutions of elliptic and parabolic equations